﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Mail;
using MammothMicro.SMTPGuard.Common;

namespace MammothMicro.SmtpGuardFilter.Filter
{
    public class RulesFilter : IEmailFilter
    {
        private List<string> _list = new List<string>();
        public bool Accept(MailMessage message)
        {
            throw new NotImplementedException();
        }

        public void Reload()
        {
            string path;
            path = System.IO.Path.GetDirectoryName(
                System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);
            path = path.Remove(0, 6);
            var reader = new StreamReader(path + @"\configuration\filterrules.txt");
            var text = reader.ReadToEnd().ToLower();
            reader.Close();
            var list = text.ToArray();
        }
    }
}


